﻿@model IEnumerable<FortuneArterial.Site.Manage.Models.NavUIModel>

@foreach (var item in Model)
{
        <li>
            <a href="@item.Path" title="@item.Name">
                @if (!string.IsNullOrEmpty(item.Icon))
                {
                    <i class="fa fa-lg fa-fw fa-@item.Icon"></i>
                }
                @if (item.Level == 1)
                {
                    <span class="menu-item-parent">@item.Name</span>
                }
                else
                {
                    @item.Name
                }
            </a>
            @if (item.Child != null && item.Child.Count > 0)
            {
                <ul>
                    @{ Html.RenderPartial("_NavItem", item.Child); }
                </ul>
            }
	</li>
}
